﻿<!DOCTYPE html>
<html class="x-admin-sm">

<head>
<meta charset="UTF-8">
<title>欢迎页面</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
{include file="public/style" /}
<style type="text/css">
body {background-color: #fff;}
</style>
<script type="text/javascript">
  $(document).ready(function(){
	layui.use(['form','table'], function() {
		var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功

		//……

		//但是，如果你的HTML是动态生成的，自动渲染就会失效
		//因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
		form.render();
	});
  });
</script>
</head>
<body>
	<div class="layui-fluid">
		<div class="layui-row">
              <table class="layui-table">
                  <tbody>
                    <tr>
                      <th>订单号</th>
                      <td>{$info.id}</td>
                    </tr>
                    <tr>
                      <th>用户id</th>
                      <td>{$info.user_id} <a title="查看" href="javascript:void(0);" onclick="xadmin.open('编辑','{:url("Member/info",array("id"=> $info["user_id"]))}')" class="layui-btn">查看</a></td>
                    </tr>
                    <tr>
                      <th>用户账号</th>
                      <td>{$info.user_name}</td>
                    </tr>
                    <tr>
                      <th>充值金额</th>
                      <td>{$info.money}</td>
                    </tr>
                    <tr>
                      <th>充值截图</th>
                      <td><a href="/attached/{$info.img}" target="_blank"><img src="/attached/{$info.img}"></a></td>
                    </tr>
                    <tr>
                      <th>订单时间</th>
                      <td>{$info.create_time|date='Y-m-d H:i:s'}</td>
                    </tr>
                    <tr>
                         <th>状态</th>
                         <td>                         
                         {eq name="info.status" value="1"}
                            <span  class="layui-btn layui-btn-normal layui-btn-mini layui-btn-disabled">审核中</span>
                         {/eq}
                         {eq name="info.status" value="2"}
                            <span class="layui-btn">审核通过</span>
                         {/eq}     
                         {eq name="info.status" value="0"}
                            <span class="layui-btn layui-btn-normal layui-btn-danger">失败</span>
                         {/eq}
                         {eq name="info.status" value="3"}
                            <span class="layui-btn layui-btn-normal layui-btn-danger">未足额</span>
                         {/eq}

                         </td>
                    </tr>                    
                  </tbody>
              </table>
		</div>
        <div class="layui-card">
                    <div class="layui-card-header">管理操作</div>
                        <div class="layui-card-body ">
                            <form class="layui-form" method="post">
							        <input type="hidden" name="id" value="{$Request.param.id}">
									<div class="layui-form-item">
										<label class="layui-form-label" for="form-field-2"> 状态：</label>
										<div class="layui-input-inline">
											  <select name="status" class="layui-input layui-unselect">
											    <option value="0" {eq name="info.status" value="1"}selected="selected"{/eq}>审核中</option>
											    <option value="1" {eq name="info.status" value="2"}selected="selected"{/eq}>审核通过</option>
											    <option value="2" {eq name="info.status" value="0"}selected="selected"{/eq}>审核失败</option>
											    <option value="2" {eq name="info.status" value="3"}selected="selected"{/eq}>未足额</option>
											  </select>
										</div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label" for="form-field-2"> 备注：</label>
										<div class="layui-input-block">
											  <textarea rows="10" cols="20" name="remark" class="layui-textarea">{$info.remark}</textarea>
										</div>
									</div>
									<div class="hr hr-24"></div>								
									<div class="layui-form-item">
											<label for="L_repass" class="layui-form-label"></label>
											<input type="submit" class="layui-btn btn-save" value="保存">
									</div>																	
							</form>
                    </div>
        </div>		
	</div>
</body>
</html>
